package com.elastic.test;

public class ResultDto<T> {

    private boolean success;

    private int httpCode;

    private String message;

    private String Tag;

    private T data;


    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getHttpCode() {
        return httpCode;
    }

    public void setHttpCode(int httpCode) {
        this.httpCode = httpCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getTag() {
        return Tag;
    }

    public void setTag(String tag) {
        Tag = tag;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResultDto{" +
                "success=" + success +
                ", httpCode=" + httpCode +
                ", message='" + message + '\'' +
                ", Tag='" + Tag + '\'' +
                ", data=" + data +
                '}';
    }
}